﻿<!--
 Copyright (c) 2012 Nokia Corporation.
 -->

<UserControl x:Class="CarTrumps.CardIndicatorControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="86" d:DesignWidth="88">
    
    <Grid x:Name="LayoutRoot">

    	<Image x:Name="bckgrnd" Source="images/card-indicator-bg.png" Stretch="Fill"/>
    	<TextBlock x:Name="currCard" HorizontalAlignment="Left" Margin="37,7,0,0" TextWrapping="Wrap" Text="{Binding ActiveCard.CardOrderNum, StringFormat=\{0:D\}}" VerticalAlignment="Top" Height="28" Width="33" Foreground="Black" TextAlignment="Center"/>
    	<TextBlock x:Name="cardsTotal" HorizontalAlignment="Left" Margin="42,47,0,0" TextWrapping="Wrap" Text="{Binding CardLeft, StringFormat=\{0:D\}}" VerticalAlignment="Top" Height="28" Width="33" Foreground="Black" TextAlignment="Center"/>

    </Grid>
</UserControl>